home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / include / grp.h < prev    next >
C/C++ Source or Header  |  1990-07-24  |  674b  |  28 lines

  1. /* The <grp.h> header is used for the getgrid() and getgrnam() calls. */
  2.  
  3. #ifndef _GRP_H
  4. #define _GRP_H
  5.  
  6. struct    group { 
  7.   char *gr_name;        /* the name of the group */
  8.   char *gr_passwd;        /* the group passwd */
  9.   gid_t gr_gid;            /* the numerical group ID */
  10.   char **gr_mem;        /* a vector of pointers to the members */
  11. };
  12.  
  13. /* Function Prototypes. */
  14. #ifndef _ANSI_H
  15. #include <ansi.h>
  16. #endif
  17.  
  18. _PROTOTYPE( struct group *getgrgid,  (int _gid)              );
  19. _PROTOTYPE( struct group *getgrnam, (char *_name)             );
  20.  
  21. #ifdef _MINIX
  22. _PROTOTYPE( void endgrent, (void)                    );
  23. _PROTOTYPE( struct group *getgrent, (void)                );
  24. _PROTOTYPE( int setgrent, (void)                    );
  25. #endif
  26.  
  27. #endif /* _GRP_H */
  28.